import userCom from './user.component.js';
import companyCom from './company.component.js';

window.onload = function() {
    // 1、配置路由
    let router = new VueRouter({
        routes: [
            {path: '/user', component: userCom},
            {path: '/company', component: companyCom}
        ]
    })

    //2  创建vue
    let vm = new Vue({
        el: '#box',
        // 给vue对象注册一个路由
        router: router,
    })
}
